package cn.edu.gench.learn.day4.war3;

/**
 * Created by Administrator on 2017/3/31.
 */
public class JuggHero extends Hero {

    private int attack = 80;

    public JuggHero() {

        this.blood = 200;
        this.magic = 100;
        Skills skills = new Skills();
        skills.setName("剑刃风暴");
        skills.setHurt(30);
        skills.setWaste(15);
        this.skills = skills;

    }

    public void fight(AmHero amHero){

        this.magic = this.magic - skills.getWaste();

        amHero.blood =  amHero.blood  - skills.getHurt();
        if(amHero.blood <= 0){
            System.out.println("amHero die");
        }

    }

    @Override
    public String toString() {

        System.out.println("blood"+ blood);
        System.out.println("magic:"+ magic);

        return "JuggHero{}";
    }
}
